<?php 
include('config/config.php');

	if(isset($_POST['Login']) && $_POST['Login'] == "Yes"){ 
		User::loginUsr($_POST['user'], $_POST['pass']); 
	}
?>
<!DOCTYPE html>
<html lang="es">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Desarrollo Proyecto alwin">
    <meta name="author" content="">
    <title>Alwin</title>
    <link href="<?= BASE_URL ?>assets/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="<?= BASE_URL ?>assets/css/bootstrap-theme.min.css">
    <link rel="stylesheet" href="<?= BASE_URL ?>assets/css/estilos-graficos.css">
    
  </head>
  <body>
      <div class="navbar navbar-fixed-top navbar-inverse bs-docs-nav" role="navigation">
      </div>
      <div class="container">
          <form name="form" class="form-signin" role="form" method="post" action="login.php">
              <div class="logo text-center">
                  <img src="<?= BASE_URL ?>assets/img/alwin.png" />
              </div>
              <h2 class="form-signin-heading">Iniciar Sesión</h2>
              <input type="text" name="user" class="form-control" placeholder="Usuario" required autofocus>
              <input type="password" name="pass" class="form-control" placeholder="Contraseña" required>
              <button class="btn btn-lg btn-info btn-block" type="submit">Ingresar</button>
			  <input type="hidden" name="Login" value="Yes">
          </form>
      </div> 
  </body>
</html>